package cn.itheima.feign;

import cn.itcast.result.Result;
import cn.itheima.goods.vo.DishOverViewVO;
import cn.itheima.goods.vo.DishVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name="sky-goods",contextId = "dish")
public interface DishClient {
    @GetMapping("/dish/{id}")
    Result<DishVO> findById(@PathVariable("id") Long id);

    @GetMapping("/dish/getCountByStatus")
    DishOverViewVO getCountByStatus();
}
